<template>
	<view>
		<view class="" >
			<view class="m-h1" style="text-align: center;">
				收银台
			</view>
			<view class="" @tap="toBack()">
				<image class="nav-margin-back-img" src="../../static/back.png" mode="widthFix"></image>
			</view>
		</view>	
		
		<view class="nav-margin-top" style="margin-top: 120rpx;">
			
			<view class="" style="margin-bottom: 80rpx;  text-align: center;">
				<view class="p-font-1">
					UBlok货款
				</view>
				<view class="p-font-2">
					¥2039.12
				</view>
			</view>
			<view class="m-margin-bottom content">
				<view class="p-font-3">
					付款方式
				</view>
				<view class="p-font-4">
					请选择您的付款方式
				</view>
			</view>
			
			<view class="content m-margin-bottom" style="margin-top: 20rpx; display: flex;justify-content: space-between;">
				<view class="" style="display: flex;">
					<view class="">
						<image style="width: 56rpx;height: 56rpx;margin-right: 10rpx;" src="../../static/p-3.png" mode="widthFix"></image>
					</view>
					<view class="">
						<view class="p-font-5">
							线上支付
						</view>
						<view class="p-font-4">
							线上直接支付更方便、更快捷
						</view>
					</view>
				</view>
				
				<view v-if="isCheck2" @click="isCheck2=!isCheck2" class="">
					<image style="width: 48rpx;height: 48rpx;" src="../../static/p-none.png" mode="widthFix"></image>
				</view>
				
				<view v-if="!isCheck2" @click="isCheck2=!isCheck2"  class="">
					<image style="width: 48rpx;height: 48rpx;" src="../../static/p-ischack.png" mode="widthFix"></image>
				</view>
			</view>
			
			<view class="content m-margin-bottom" style="margin-top: 20rpx; display: flex;justify-content: space-between;">
				<view class="" style="display: flex;">
					<view class="">
						<image style="width: 56rpx;height: 56rpx;margin-right: 10rpx;" src="../../static/p-2.png" mode="widthFix"></image>
					</view>
					<view class="">
						<view class="p-font-5">
							线下支付
						</view>
						<view class="p-font-4">
							货到付款、邮局汇款、银行转帐和当面交易等
						</view>
					</view>
				</view>
				
				<view v-if="isCheck3" @click="isCheck3=!isCheck3" class="">
					<image style="width: 48rpx;height: 48rpx;" src="../../static/p-none.png" mode="widthFix"></image>
				</view>
				
				<view v-if="!isCheck3" @click="isCheck3=!isCheck3"  class="">
					<image style="width: 48rpx;height: 48rpx;" src="../../static/p-ischack.png" mode="widthFix"></image>
				</view>
			</view>
		
			<view class="content m-margin-bottom" style="display: flex;justify-content: space-between;margin-top: 20rpx;">
				<view class="" style="display: flex;">
					<view class="">
						<image style="width: 56rpx;height: 56rpx;margin-right: 10rpx;" src="../../static/p-1.png" mode=""></image>
					</view>
					<view class="">
						<view class="p-font-5">
							找我垫付
						</view>
						<view class="p-font-4">
							我们为您提供固定金额的垫付服务
						</view>
					</view>
				</view>
				
				<view v-if="isCheck1" @click="isCheck1=!isCheck1" class="">
					<image style="width: 48rpx;height: 48rpx;" src="../../static/p-none.png" mode="widthFix"></image>
				</view>
				
				<view v-if="!isCheck1" @click="isCheck1=!isCheck1" class="">
					<image style="width: 48rpx;height: 48rpx;" src="../../static/p-ischack.png" mode="widthFix"></image>
				</view>
				
			</view>
			
			<view class="content p-font-6" style="margin-top: 120rpx;">
				<text style="position: relative;top: 20rpx;">立即支付</text>
			</view>
		
		
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isCheck1:true,
				isCheck2:true,
				isCheck3:true,
			}
		},
		methods: {
			toBack:function(){
				console.log(1)
				uni.navigateBack({
					delta: 1 //返回上一级页面
				})
			},
		}
	}
</script>

<style scoped lang="less">
@import url('../../style.less');
@import url('pay.less');
</style>
